package o;

import android.view.View;
import android.view.animation.Interpolator;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import java.util.ArrayList;
import java.util.Iterator;

@RestrictTo({d.LIBRARY_GROUP})
public class bb {
    private final id ʽ = new id(this) {
        private boolean ˊ = false;
        final /* synthetic */ bb ˎ;
        private int ˏ = 0;

        {
            this.ˎ = r2;
        }

        public void ˏ(View view) {
            if (!this.ˊ) {
                this.ˊ = true;
                if (this.ˎ.ˎ != null) {
                    this.ˎ.ˎ.ˏ(null);
                }
            }
        }

        void ˋ() {
            this.ˏ = 0;
            this.ˊ = false;
            this.ˎ.ˎ();
        }

        public void ˎ(View view) {
            int i = this.ˏ + 1;
            this.ˏ = i;
            if (i == this.ˎ.ˏ.size()) {
                if (this.ˎ.ˎ != null) {
                    this.ˎ.ˎ.ˎ(null);
                }
                ˋ();
            }
        }
    };
    private long ˊ = -1;
    private Interpolator ˋ;
    ib ˎ;
    final ArrayList<ic> ˏ = new ArrayList();
    private boolean ॱ;

    public bb ˊ(ic icVar) {
        if (!this.ॱ) {
            this.ˏ.add(icVar);
        }
        return this;
    }

    public bb ˏ(ic icVar, ic icVar2) {
        this.ˏ.add(icVar);
        icVar2.ˊ(icVar.ॱ());
        this.ˏ.add(icVar2);
        return this;
    }

    public void ॱ() {
        if (!this.ॱ) {
            Iterator it = this.ˏ.iterator();
            while (it.hasNext()) {
                ic icVar = (ic) it.next();
                if (this.ˊ >= 0) {
                    icVar.ˏ(this.ˊ);
                }
                if (this.ˋ != null) {
                    icVar.ˊ(this.ˋ);
                }
                if (this.ˎ != null) {
                    icVar.ॱ(this.ʽ);
                }
                icVar.ˎ();
            }
            this.ॱ = true;
        }
    }

    void ˎ() {
        this.ॱ = false;
    }

    public void ˏ() {
        if (this.ॱ) {
            Iterator it = this.ˏ.iterator();
            while (it.hasNext()) {
                ((ic) it.next()).ˏ();
            }
            this.ॱ = false;
        }
    }

    public bb ˎ(long j) {
        if (!this.ॱ) {
            this.ˊ = j;
        }
        return this;
    }

    public bb ˊ(Interpolator interpolator) {
        if (!this.ॱ) {
            this.ˋ = interpolator;
        }
        return this;
    }

    public bb ˊ(ib ibVar) {
        if (!this.ॱ) {
            this.ˎ = ibVar;
        }
        return this;
    }
}
